package com.hypertech.core.ffmpeg.controller;

import com.hypertech.core.ffmpeg.model.Job;
import com.hypertech.core.ffmpeg.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/job")
@RestController
public class JobController {
    @Autowired
    private JobService jobService;

    @RequestMapping("/findAll")
    public List<Job> findAll()throws Exception{
        return jobService.findAll();
    }
}
